<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/templates/css/style.css" type="text/css" />
<link rel="stylesheet" href="/templates/css/app.css" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/templates/js/global.js"></script>
<meta name="keywords" content="{<$assign_appinfo[4].info>}" />
<!--[if lt IE 10]>
<script type="text/javascript" src="templates/js/PIE.js"></script>
<![endif]-->
<title>{<$assign_appinfo[1]>}</title>
</head>
<body>
	<div id="wrap">
		<div id="nav">
        	<div class="nav_menu">
            	<div class="nav_menu_left">
                	<li>收藏本站</li>
                    <li>固件</li>
                    <li>新闻中心</li>
                    <li>新手教程</li>
                    <li>越狱</li>
                    <li>微博</li>
                    <li>商务合作</li>
                </div>
                <div class="nav_menu_right">
                	{<if $uid != ''>}
                	<li><a href="member.php?id={<$uid>}">查看我的积分</a></li>
                    <li><a href="member.php?id={<$uid>}">进入会员中心</a></li>
                    {</if>}
                	<li><a href="login.html" target="_blank">注册</a></li>
                    <li><a href="login.html" target="_blank">登录</a></li>
                </div>
            </div>
        </div><!--顶部-->
        <div id="header">
        	<div id="banner"><a href="/app_list/app-{<$assign_bannerapp[0].id>}.html" target="_blank" title="{<$assign_bannerapp[0].name>}"><img src="{<$assign_bannerapp[0].url>}" alt="{<$assgin_bannerapp[0].name>}" /></a></div>
            <div id="menu">
            	<div class="logo"></div>
                <div class="search">
                	<div class="search_content">
						<div class="search_main">
							<form action="search.php" method="get">
                        	<div class="search_icon"></div>
							
                        	<input class="search_text" name="keywords" type="text" value="{<$assign_skeyword[0]['name']>}" /></div>
							<input class="search_button" type="submit" value="搜索" />
                        	</form>
						
                        	
                    </div>
                    <div class="search_keywords">热门搜索：
                    	{<section name="s" loop=$assign_search>}
                        	<a href="search.php?keywords={<$assign_search[s].name>}&page=1" target="_blank"><span>{<$assign_search[s].name>} </span></a>
                        {</section>}
                    </div>
                </div>
                	<div class="menu_tab">
                    	<li class="selected"><a href="index.html" target="_blank">iPhone游戏</a></li>
                        {<section name="c" loop=$assign_artcategory>}
                        	<li><a href="/article-1-{<$assign_artcategory[c].id>}.html" target="_blank">{<$assign_artcategory[c].name>}</a></li>
                        {</section>}
<!--                        <li>游戏测评</li>
                        <li>iPhone新闻</li>-->
                        <li><a href="lottery.html" target="_blank">积分兑换</a></li>
                    </div>
            </div>
            <div id="menu_list">
				<div class="listmenu">
              		<li><a href="index.html" target="_blank">首页</a></li>
                	<li><a href="app_list.php?page=1&order=0&id=0&pri=1&ca=0&kw=0&pre=" target="_blank">限时免费</a></li>
                	<li><a href="app_list.php?page=1&order=1&id=0&pri=0&ca=0&kw=0&pre=" target="_blank">热门游戏</a></li>
                	<li><a href="app_list.php?page=1&order=0&id=0&pri=0&ca=0&kw=0&pre=" target="_blank">最新APP应用</a></li>
                	<li><a href="app_list.php?page=1&id=0&pri=0&ca=0&kw=1&pre=" target="_blank">网游</a></li>
				</div>
                <div class="app_count"><h1>共{<$assign_countapp>}个应用,今日更新{<$assign_radnom>}个应用</h1></div>
            </div>
        </div><!--头部-->
        <div id="container">
        <div id="content">
			<div id="app">
				<div class="location"><a href="app_list.php?page=1&id=0&pri=0&ca=&kw=&pre" target="_blank">应用下载</a>>>>{<$assign_appinfo[1]>}</div>
				<div class="app_main">
					<div class="main_left">
						<div class="left_icon">
							<img style="border-radius:30px;" src="{<$assign_appinfo[0]>}" width="175px" height="175px" fliter-option="{<$uid>}"/>
						</div>
						{<if $assign_appinfo[15] != ''>}
						<a href="{<$assign_appinfo[15]>}"><div class="left_jailbreak click">越狱下载</div></a>
						{<else>}
						<div class="left_jailbreak">暂无越狱下载</div>
						{</if>}
						<a href="{<$assign_appinfo[14]>}" target="_blank"><div class="left_download" option-value="{<$assign_appinfo[17]>}">iTunes下载</div></a>
						<script>
							$(document).ready(function(){
								var trackid = $(".left_download").attr("option-value");
								var uid = $(".left_icon").find("img").attr("fliter-option");
								$(".left_download").click(function(){
									$.ajax({
										type:"post",
										url:"like_ajax.php",
										data:{trackid:trackid,uid:uid},
										success:function(data){
														
										}
									});
								});
							});//下载加积分
						</script>
						<div class="left_info">
							<ul>
								<li><span>类别:</span>{<$assign_appinfo[2]>}</li>
								<li><span>版本:</span>{<$assign_appinfo[3]>}</li>
								<li><span>大小:</span>{<$assign_appinfo[9]>}MB</li>
								<li><span>下载:</span>{<$assign_appinfo[13]>}</li>
								<li><span>评分:</span>
									<div class="rating">
									{<if $assign_appinfo[12] == 1>}
										<dt class="full"></dt>
									{<else if $assign_appinfo[12] == 1.5>}
										<dt class="full"></dt>
										<dt class="half"></dt>
									{<else if $assign_appinfo[12] == 2>}
										<dt class="full"></dt>
										<dt class="full"></dt>										
									{<else if $assign_appinfo[12] == 2.5>}
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="half"></dt>
									{<else if $assign_appinfo[12] == 3>}
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
									{<else if $assign_appinfo[12] == 3.5>}
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="half"></dt>
									{<else if $assign_appinfo[12] == 4>}
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
									{<else if $assign_appinfo[12] == 4.5>}
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="half"></dt>
									{<else if $assign_appinfo[12] == 5>}									
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
										<dt class="full"></dt>
									{</if>}
									</div>							
								</li>
								<li><span>评分人数：</span>{<$assign_appinfo[16]>}</li>
								<li><span>上线日期:</span>{<$assign_appinfo[7]>}</li>
								<li><span>开发商:</span>{<$assign_appinfo[5]>}</li>
								<li><span>售价:</span>{<$assign_appinfo[10]>}</li>
								<li><span>语言:</span>{<$assign_appinfo[8]>}</li>
							</ul>
						</div>
						<div class="left_other">
                        	<h1 class="other_title">{<$assign_appinfo[5]>}的其他应用</h1>
                        	{<section name="o" loop=$assign_other>}                            
								<li>
									<div class="li_icon"><a href="/app_list/app-{<$assign_other[o].id>}.html" target="_blank"><img width="48px" height="48px" src="{<$assign_other[o].icon>}" /></a></div><p><a href="/app_list/app-{<$assign_other[o].id>}.html" target="_blank">{<$assign_other[o].name>}</a></p>
								</li>
                            {</section>}
						</div>
					</div>
					<div id="main_right">
                    <div class="main">
						<h1 class="main_title">{<$assign_appinfo[1]>}</h1>
						<span class="main_tags">标签:{<$assign_appinfo[4].info>}</span>
                    </div>
						<div class="main_intro">
                       	
							
							<div id="main_content">简介:{<$assign_appinfo[6]>}</div>
                            <div id="button" class="down"></div>                            
                            <script>
								
							</script>                           
                        </div>
                     	<div id="slider">
                            	<div class="slider_pre"></div>
                            	<div class="slider_main">
                                	{<section name="p" loop=$assign_picurl>}
                                    {<if $assign_picurl[p].id == 0>}
                                    <li option-value="{<$assign_picurl[p].id>}" class="selected"><img src="{<$assign_picurl[p].url>}" /></li>
                                    {<else>}
                                	<li option-value="{<$assign_picurl[p].id>}"><img src="{<$assign_picurl[p].url>}" /></li>
                                    {</if>}
                                    {</section>}
                                </div>
                                <div class="slider_next"></div>
                                <script>
								
									/**/
								</script>
                            </div>
                        <div class="main_push">
                        	<div class="jieshao">推荐APP</div>
                            {<section name="t" loop=$assign_listpush>}
                            	<li>
                               		<div class="image"><a href="/app_list/app-{<$assign_listpush[t].id>}.html" target="_blank"><img src="{<$assign_listpush[t].path>}" alt="{<$assign_listpush[t].name>}" width="154px" height="116px" /></a></div>
									<div class="desc"><a href="/app_list/app-{<$assign_listpush[t].id>}.html" target="_blank">{<$assign_listpush[t].name>}</a></div>
                               	</li>
                            {</section>}
                         	</div>
						</div>
                    </div>
				</div>
                <div id="content_right">
                	<div class="content_app2" style="background:#fff; border:1px solid #dddddd;">
                    	{<section name="right" loop=$assign_right>}
						<div class="single">
							<a href="/article/view-{<$assign_right[right].id>}-1.html" target="_blank"><img src="/images/{<$assign_right[right].pic>}.png" alt="{<$assign_right[right].name>}" width="230px" height="100px" /> </a>
                        	<div class="name">{<$assign_right[right].name>}</div>
                        </div>
						{</section>}
                    </div>
                    <div class="content_rank">
                    	<div class="category"><div class="category_name">免费应用排行</div><div class="more"><a href="app_list.php?page=1&id=0&pri=1&ca=&kw=&pre" target="_blank">更多>></a></div></div>
                        	<ul class="top">
							{<section name="p" loop=$assign_apprank>}
								{<if $assign_apprank[p].num < 4>}
								<li><a href="/app_list/app-{<$assign_apprank[p].id>}.html" target="_blank"><div class="num1">0{<$assign_apprank[p].num>}</div><div class="icon"><img src="{<$assign_apprank[p].icon>}" width="48px" height="48px" /></div>{<$assign_apprank[p].name>}</a></li>
								{<else if $assign_apprank[p].num < 10>}
								<li><a href="/app_list/app-{<$assign_apprank[p].id>}.html" target="_blank"><div class="num">0{<$assign_apprank[p].num>}</div><div class="icon"><img src="{<$assign_apprank[p].icon>}" width="48px" height="48px" /></div>{<$assign_apprank[p].name>}</a></li>
                                {<else if $assign_apprank[p].num == 10>}
                                <li><a href="/app_list/app-{<$assign_apprank[p].id>}.html" target="_blank"><div class="num">{<$assign_apprank[p].num>}</div><div class="icon"><img src="{<$assign_apprank[p].icon>}" width="48px" height="48px" /></div>{<$assign_apprank[p].name>}</a></li>
								{</if>}
							{</section>}
                            </ul>
                    	<div class="content_app2">
							{<section name="rightapp" loop=$assign_rightapp>}
                    		<div class="single">
								<a href="/app_list/app-{<$assign_rightapp[rightapp].id>}.html" target="_blank"><img width="230px" height="100px" src="/images/{<$assign_rightapp[rightapp].pic>}.png" alt="{<$assign_rightapp[rightapp].name>}" /></a>
                        		<div class="name">{<$assign_rightapp[rightapp].name>}</div>
                        	</div>
							{</section>}
                    	</div>
                    </div>
                    <div class="content_news content_intro">
                    	<div class="name">新闻资讯</div>
                        	<div class="category">苹果新闻</div>
							<div class="more"><a href="/article-1-1.html" target="_blank">[全部]</a></div>
                            <div class="newslist">
                             {<section name="n" loop=$assign_newstop5>}
                        		<li><div class="newsicon"></div><a href="/article/view-{<$assign_newstop5[n].id>}-1.html" target="_blank" title="{<$assign_newstop5[n].title>}">{<$assign_newstop5[n].title>}</a></li>
                            {</section>}
                           	</div>
                    </div>

                </div><!--右侧-->
			</div>
            <div id="footer">{<$assign_appinfo[18]>}</div><!--底部-->
        </div>
    </div>
	</div>
</body>
<script>
	$(document).ready(function(){
		$(".main_intro").find("#button").click(function(){
										if(!$(".main_intro").find("#main_content").hasClass("intro_current")){
											$(".main_intro").find("#main_content").addClass("intro_current");
											$(".main_intro").find("#button").removeClass("down").addClass("up");
										}else{				
											$(".main_intro").find("#main_content").removeClass("intro_current");
											$(".main_intro").find("#button").removeClass("up").addClass("down");
										}
									});
								});
								
	var explorer = window.navigator.userAgent ;
									if((explorer.indexOf("MSIE") >= 0)){
										var width = $("#slider").find("img").width();
										var height = $("#slider").find("img").height();
										
										if(width/height > 1){
											img_width = 480;
											img_height = 480*parseInt(height)/parseInt(width);									
											$("#slider").find("img").attr("width",img_width);
											$("#slider").find("img").attr("height",img_height);
										}else if(width/height <1){
											img_height = 360;
											img_width = 360*parseInt(width)/parseInt(height);									
											$("#slider").find("img").attr("width",img_width);
											$("#slider").find("img").attr("height",img_height);										
										}
										var swidth = (510-parseInt(img_width))/2;
										var sheight = (360-parseInt(img_height))/2;										
										var smargin = sheight+"px "+swidth+"px";
										$("#slider").find(".slider_main").css({"width":img_width,"height":img_height,"margin":smargin});
										$("#slider").find(".slider_main li").css({"width":img_width,"height":img_height,"margin":"0 auto"});
										$(".slider_main").find("img").show();
									}else{
										$(window).load(function(){
											$(".slider_main li").find("img").hide();
											var width = $("#slider").find("img").width();
											var height = $("#slider").find("img").height();
											
											if(width/height > 1){
												img_width = 480;
												img_height = 480*parseInt(height)/parseInt(width);						
												$("#slider").find("img").attr("width",img_width);
												$("#slider").find("img").attr("height",img_height);											
											}else if(width/height <1){
												img_height = 360;
												img_width = 360*parseInt(width)/parseInt(height);						
												$("#slider").find("img").attr("width",img_width);
												$("#slider").find("img").attr("height",img_height);										
											}//error
											
											var swidth = (510-parseInt(img_width))/2;
											var sheight = (360-parseInt(img_height))/2;										
											var smargin = sheight+"px "+swidth+"px";
											$("#slider").find(".slider_main").css({"width":img_width,"height":img_height,"margin":smargin});
											$("#slider").find(".slider_main li").css({"width":img_width,"height":img_height,"margin":"0 auto"});
											$(".slider_main").find("img").show();
										});
									}

									url_id = document.location.search;
									url_id = url_id.replace(/\?id=/,'');
									var count = document.getElementById('slider').getElementsByTagName('li').length;
									var last = parseInt(count)-1;
									$(document).ready(function(){
										$("#slider").find(".slider_pre").click(function(){
											for(i=0;i<count;i++){
												if($(".slider_main").find("li").eq(i).hasClass("selected")){
													var id = $(".slider_main").find("li").eq(i).attr("option-value");
													if(id == 0){
														y =last;
														$(".slider_main").find("li").eq(id).removeClass("selected");
														$(".slider_main").find("li").eq(y).addClass("selected");
														break;
													}else{
														y = parseInt(i)-1;
														$(".slider_main").find("li").eq(i).removeClass("selected");
														$(".slider_main").find("li").eq(y).addClass("selected");
													}
												}
											}
										});
									});
									$(document).ready(function(){
										$("#slider").find(".slider_next").click(function(){
											for(i=0;i<count;i++){
												if($(".slider_main").find("li").eq(i).hasClass("selected")){
													var id = $(".slider_main").find("li").eq(i).attr("option-value");
													if(id == last){
														y = 0;
														$(".slider_main").find("li").eq(id).removeClass("selected");
														$(".slider_main").find("li").eq(y).addClass("selected");														
													}else{
														y = parseInt(id)+1;
														$(".slider_main").find("li").eq(i).removeClass("selected");
														$(".slider_main").find("li").eq(y).addClass("selected");	
														break;													
													}
												}
											}
										});
									});
</script>
</html>

